﻿using Abp.Domain.Entities.Auditing;
using System.ComponentModel;

namespace SingleUserMall.Commissions
{
    /// <summary>
    /// 分销分润比例
    /// </summary>
    public class Commission : FullAuditedEntity<long>
    {
        /// <summary>
        /// 一级分销分润比例
        /// </summary>
        public decimal FirstCommission { get; set; }
        /// <summary>
        /// 二级分销分润比例
        /// </summary>
        public decimal SecondCommission { get; set; }

        /// <summary>
        /// 佣金分润类型
        /// </summary>
        public enum CommissionType : int
        {
            /// <summary>
            /// 商城
            /// </summary>
            [Description("商品")]
            ShoppingItems = 0,

            /// <summary>
            /// 树购
            /// </summary>
            [Description("树")]
            TreeShopping = 1,
        }
    }
}
